Optimal. Leaf size=446 \[ \frac {\left (42 a b B+8 b^2 (3 A+2 C)+a^2 (48 A+17 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{24 d \sqrt {a+b \sec (c+d x)}}+\frac {\left (6 a^2 b B+8 b^3 B-a^3 C+12 a b^2 (2 A+C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{8 b d \sqrt {a+b \sec (c+d x)}}-\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{24 b d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 b d}+\frac {(2 b B+a C) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.10, antiderivative size = 446, normalized size of antiderivative = 1.00, number
of steps used = 14, number of rules used = 13, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.289, Rules
used = {4181, 4187, 4193, 3944, 2886, 2884, 4120, 3941, 2734, 2732, 3943, 2742, 2740}
\begin {gather*} \frac {\sin (c+d x) \sqrt {\sec (c+d x)} \left (3 a^2 C+30 a b B+24 A b^2+16 b^2 C\right ) \sqrt {a+b \sec (c+d x)}}{24 b d}+\frac {\sqrt {\sec (c+d x)} \left (a^2 (48 A+17 C)+42 a b B+8 b^2 (3 A+2 C)\right ) \sqrt {\frac {a \cos (c+d x)+b}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{24 d \sqrt {a+b \sec (c+d x)}}-\frac {\left (3 a^2 C+30 a b B+24 A b^2+16 b^2 C\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{24 b d \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}}}+\frac {\sqrt {\sec (c+d x)} \left (a^3 (-C)+6 a^2 b B+12 a b^2 (2 A+C)+8 b^3 B\right ) \sqrt {\frac {a \cos (c+d x)+b}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{8 b d \sqrt {a+b \sec (c+d x)}}+\frac {(a C+2 b B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}{4 d}+\frac {C \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2884
Rule 2886
Rule 3941
Rule 3943
Rule 3944
Rule 4120
Rule 4181
Rule 4187
Rule 4193
Rubi steps
\begin {align*} \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {1}{3} \int \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \left (\frac {1}{2} a (6 A+C)+(3 A b+3 a B+2 b C) \sec (c+d x)+\frac {3}{2} (2 b B+a C) \sec ^2(c+d x)\right ) \, dx\\ &=\frac {(2 b B+a C) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {1}{6} \int \frac {\sqrt {\sec (c+d x)} \left (\frac {1}{4} a (24 a A+6 b B+7 a C)+\frac {1}{2} \left (12 a^2 B+6 b^2 B+a b (24 A+13 C)\right ) \sec (c+d x)+\frac {1}{4} \left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) \sec ^2(c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 b d}+\frac {(2 b B+a C) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\int \frac {-\frac {1}{8} a \left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right )+\frac {1}{4} a b (24 a A+6 b B+7 a C) \sec (c+d x)+\frac {3}{8} \left (6 a^2 b B+8 b^3 B-a^3 C+12 a b^2 (2 A+C)\right ) \sec ^2(c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{6 b}\\ &=\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 b d}+\frac {(2 b B+a C) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\int \frac {-\frac {1}{8} a \left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right )+\frac {1}{4} a b (24 a A+6 b B+7 a C) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{6 b}+\frac {\left (6 a^2 b B+8 b^3 B-a^3 C+12 a b^2 (2 A+C)\right ) \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{16 b}\\ &=\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 b d}+\frac {(2 b B+a C) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\left (-24 A b^2-30 a b B-3 a^2 C-16 b^2 C\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{48 b}+\frac {1}{48} \left (42 a b B+8 b^2 (3 A+2 C)+a^2 (48 A+17 C)\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx+\frac {\left (\left (6 a^2 b B+8 b^3 B-a^3 C+12 a b^2 (2 A+C)\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {b+a \cos (c+d x)}} \, dx}{16 b \sqrt {a+b \sec (c+d x)}}\\ &=\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 b d}+\frac {(2 b B+a C) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\left (\left (42 a b B+8 b^2 (3 A+2 C)+a^2 (48 A+17 C)\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{48 \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (6 a^2 b B+8 b^3 B-a^3 C+12 a b^2 (2 A+C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{16 b \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (-24 A b^2-30 a b B-3 a^2 C-16 b^2 C\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{48 b \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}}\\ &=\frac {\left (6 a^2 b B+8 b^3 B-a^3 C+12 a b^2 (2 A+C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{8 b d \sqrt {a+b \sec (c+d x)}}+\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 b d}+\frac {(2 b B+a C) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\left (\left (42 a b B+8 b^2 (3 A+2 C)+a^2 (48 A+17 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{48 \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (-24 A b^2-30 a b B-3 a^2 C-16 b^2 C\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{48 b \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}\\ &=\frac {\left (42 a b B+8 b^2 (3 A+2 C)+a^2 (48 A+17 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{24 d \sqrt {a+b \sec (c+d x)}}+\frac {\left (6 a^2 b B+8 b^3 B-a^3 C+12 a b^2 (2 A+C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{8 b d \sqrt {a+b \sec (c+d x)}}-\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{24 b d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {\left (24 A b^2+30 a b B+3 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 b d}+\frac {(2 b B+a C) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {C \sec ^{\frac {3}{2}}(c+d x) (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 16.86, size = 800, normalized size = 1.79 \begin {gather*} -\frac {(a+b \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {2 \left (-96 a^2 A b-24 a b^2 B-28 a^2 b C\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{\sqrt {b+a \cos (c+d x)}}+\frac {2 \left (-120 a A b^2-6 a^2 b B-48 b^3 B+9 a^3 C-56 a b^2 C\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{\sqrt {b+a \cos (c+d x)}}+\frac {2 i \left (24 a A b^2+30 a^2 b B+3 a^3 C+16 a b^2 C\right ) \sqrt {\frac {a-a \cos (c+d x)}{a+b}} \sqrt {\frac {a+a \cos (c+d x)}{a-b}} \cos (2 (c+d x)) \left (-2 b (a+b) E\left (i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )+a \left (2 b F\left (i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )+a \Pi \left (1-\frac {a}{b};i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )\right )\right ) \sin (c+d x)}{\sqrt {\frac {1}{a-b}} b \sqrt {1-\cos ^2(c+d x)} \sqrt {\frac {a^2-a^2 \cos ^2(c+d x)}{a^2}} \left (-a^2+2 b^2-4 b (b+a \cos (c+d x))+2 (b+a \cos (c+d x))^2\right )}\right )}{48 b d (b+a \cos (c+d x))^{3/2} (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x)) \sec ^{\frac {7}{2}}(c+d x)}+\frac {(a+b \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {1}{6} \sec ^2(c+d x) (6 b B \sin (c+d x)+7 a C \sin (c+d x))+\frac {\sec (c+d x) \left (24 A b^2 \sin (c+d x)+30 a b B \sin (c+d x)+3 a^2 C \sin (c+d x)+16 b^2 C \sin (c+d x)\right )}{12 b}+\frac {2}{3} b C \sec ^2(c+d x) \tan (c+d x)\right )}{d (b+a \cos (c+d x)) (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x)) \sec ^{\frac {7}{2}}(c+d x)} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.33, size = 5245, normalized size = 11.76
method | result | size |
default | \(\text {Expression too large to display}\) | \(5245\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________